const express = require('express')
const TeacherRouter = express.Router()
const TeacherController = require('../controllers/TeacherController.js')

TeacherRouter.post('/api/teacher/add', TeacherController.add)
TeacherRouter.delete('/api/teacher/list/:username', TeacherController.delList)
TeacherRouter.get('/api/teacher/getcourse/:username', TeacherController.getCourse)
TeacherRouter.post('/api/teacher/postcourse/:username', TeacherController.postCourse)

module.exports = TeacherRouter
